﻿using RBAC.Domain.Service.Interfae;
using RBAC.Repository.Impl;
using RBAC.Repository.Interfae;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain.Service.Impl
{
    public class ProvinceService : IProvinceService
    {
        protected readonly IProvinceRepository _provinceRepository;
        public ProvinceService(IProvinceRepository provinceRepository)
        {
            _provinceRepository = provinceRepository;
        }
        /// <summary>
        /// 显示省份
        /// </summary>
        /// <returns></returns>
        public async Task<List<Province>> GetProvincesList()
        {
            return await _provinceRepository.GetProvinces();
        }
    }
}
